package com.lht.testDemo;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;
import org.junit.Test;

import java.io.File;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-07-15
 */
public class MD5Test {

    @Test
    public void toMD5(){
        long  now=System.currentTimeMillis();
        System.out.println(now);
        Digester md5 = new Digester(DigestAlgorithm.MD5);
        String digestHex = md5.digestHex("yycc"+now+"123456");
        System.out.println(digestHex);
    }

    @Test
    public void test(){
        String a="1";
        String b="1";
        System.out.println("a.equasl(b):"+a.equals(b));
        System.out.println("!a.equasl(b):"+!a.equals(b));
    }


    @Test
    public void testFileSeparator(){
        System.out.println(File.separator);
    }
}
